<%-- 
    Document   : index
    Created on : Oct 25, 2010, 6:06:51 PM
    Author     : M Bilal
--%>

<%@ page import="wap.rockvilletech.portal.DBProc"%>
<%@ page import="java.io.*,java.sql.*,java.net.*"%>
<%@ page import="org.apache.log4j.Logger" %>
<%@ include file="../includes/header.jspf"%>

<%
    final Logger log = Logger.getLogger("JSP.Utune Index");
    thisPage = "Utune-Index";
    String strMore = request.getParameter("more") != null ? request.getParameter("more") : "";
    int intIsNew=0,intIsDownload=0;
    DBProc db=DBProc.getInstance();
    Vector<String[]> vRbt=null;
%>

<%--

http://utunes.ufone.com:8088/user/loginindex.screen{WhatsNewParser}
http://utunes.ufone.com:8088/user/loginindex.screen{MostDldParser}

--%>

<div style="padding: 0px 0px 0px 0px;">
    <div align="center" style=" background-color: #dedfe1;padding-top:2px;background-image:url('images/new/.jpg');background-repeat: repeat-x;background-position:0% 350%;">
        <a href="<%=context_Path%>"><img src='<%=context_Path%>/imgsrv?img=home<%=sImgFix%>.jpg&repo=PI&s=0&w=<%=mainButtonImgWidth%>' alt="home" title="Home"></a>
        <a href="<%=context_Path%>/content/index.jsp?app=Bollywood"><img src='<%=context_Path%>/imgsrv?img=downloads<%=sImgFix%>.jpg&repo=PI&s=0&w=<%=mainButtonImgWidth%>' alt="downloads" title="Downloads"></a>
        <a href="<%=context_Path%>/coolstuff/index.jsp"><img src='<%=context_Path%>/imgsrv?img=cool_stuff<%=sImgFix%>.jpg&repo=PI&s=0&w=<%=mainButtonImgWidth%>' alt="coolstuff" title="Cool Stuff"></a>
        <a href="<%=context_Path%>/news/news.jsp"><img src='<%=context_Path%>/imgsrv?img=news<%=sImgFix%>.jpg&repo=PI&s=0&w=<%=mainButtonImgWidth%>' alt="news" title="News"></a>
    </div>
    <div class="div_navigation" id="div_navigation">
        <a href="/ufone/index.jsp?page=index.jsp&amp;ref=navLinks" class="LinkIndex">Home</a>&nbsp;&gt;
        <span class="navigation_Leaf">Music</span>
    </div>

    <div>
        <table width="100%" align="left" cellpadding="0" cellspacing="0" style="text-align: left;font-weight: bold;">
            <tr>
            <td style="background-image:url('../images/new/top_bar_02.jpg');background-repeat: repeat-x;height:26px;">
                <b style="padding:0px 0px 0px 3px;">UTunes</b>
            </td>
            </tr>
        </table>
    </div>
    <div style="clear:both;height:1px;">&nbsp;</div>
    <div style="padding:5px 0px 5px 0px;" align="left">
        <%--   
                <table align="center" width="100%">
                    <tr>
                        <td width="50%">
                            <a class="" href="<%=context_Path%>/utune/utune_service.jsp" >
                                <img src="<%=context_Path%>/images/bullet-grey.jpg" alt=""/>&nbsp;Utune Service</a>
                        </td>
                       </tr>
                       <tr>
                        <td width="50%">
                            <a class="" href="<%=context_Path%>/utune/most_download.jsp" >
                            <img src="<%=context_Path%>/images/bullet-grey.jpg" alt=""/>&nbsp;Most Downloaded
                            </a>
                        </td>
                        </tr>
                        <tr>
                        <td width="50%">
                            <a class="" href="<%=context_Path%>/utune/whatsnew.jsp">
                                <img src="<%=context_Path%>/images/bullet-grey.jpg" alt=""/>&nbsp;Whats New!</a>
                        </td>
                       </tr>
                </table>
                        
        --%>
        <table width="100%" cellpadding="2" cellspacing="1">
            <tr style="background-color:#DEDFE1;padding:0px 0px 0px 3px;">
            <th width="70%">What's New</th>
            <th width="10%">Buy</th>
            <th width="10%">Gift</th>
            <th width="10%">Detail</th>
            </tr>
<%
vRbt = db.getTopRbts(1,0);
int i=0;
for(; i < Math.min(5, vRbt.size()); i++) {
    String [] rbt = (String [])vRbt.get(i);
%>            
        <tr><td><%=rbt[1]%></td><td><a href="<%=context_Path%>/utune/buy.jsp?rbt=<%=rbt[0]%>"><img src="<%=context_Path%>/images/buy.png" alt="buy"/></a></td><td><a href="<%=context_Path%>"><img src="<%=context_Path%>/images/gift.png" alt="gift"/></a></td><td><a href="<%=context_Path%>"><img src="<%=context_Path%>/images/details.png" alt="detail"/></a></td></tr>
        <!--
            <tr><td>Roz Roz Kehro</td><td><a href="<%=context_Path%>/utune/buy.jsp"><img src="<%=context_Path%>/images/buy.png" alt="buy"/></a></td><td><a href="<%=context_Path%>"><img src="<%=context_Path%>/images/gift.png" alt="gift"/></a></td><td><a href="<%=context_Path%>"><img src="<%=context_Path%>/images/details.png" alt="detail"/></a></td></tr>
            <tr><td>Qismat Ja Mela</td><td><a href="<%=context_Path%>/utune/buy.jsp"><img src="<%=context_Path%>/images/buy.png" alt="buy"/></a></td><td><a href="<%=context_Path%>"><img src="<%=context_Path%>/images/gift.png" alt="gift"/></a></td><td><a href="<%=context_Path%>"><img src="<%=context_Path%>/images/details.png" alt="detail"/></a></td></tr>
            <tr><td>Mastani Chal Disi</td><td><a href="<%=context_Path%>/utune/buy.jsp"><img src="<%=context_Path%>/images/buy.png" alt="buy"/></a></td><td><a href="<%=context_Path%>"><img src="<%=context_Path%>/images/gift.png" alt="gift"/></a></td><td><a href="<%=context_Path%>"><img src="<%=context_Path%>/images/details.png" alt="detail"/></a></td></tr>
            <tr><td>Jaan E Man</td><td><a href="<%=context_Path%>/utune/buy.jsp"><img src="<%=context_Path%>/images/buy.png" alt="buy"/></a></td><td><a href="<%=context_Path%>"><img src="<%=context_Path%>/images/gift.png" alt="gift"/></a></td><td><a href="<%=context_Path%>"><img src="<%=context_Path%>/images/details.png" alt="detail"/></a></td></tr>
        -->
<%
}
    if ("1".equals(strMore)) {
        for(; i < Math.min(10, vRbt.size()); i++) {
    String [] rbt = (String [])vRbt.get(i);
%>
<tr><td><%=rbt[1]%></td><td><a href="<%=context_Path%>/utune/buy.jsp?rbt=<%=rbt[0]%>"><img src="<%=context_Path%>/images/buy.png" alt="buy"/></a></td><td><a href="<%=context_Path%>"><img src="<%=context_Path%>/images/gift.png" alt="gift"/></a></td><td><a href="<%=context_Path%>"><img src="<%=context_Path%>/images/details.png" alt="detail"/></a></td></tr>
        <!--            
        <tr><td>Hawa Je Paran Te</td><td><a href="<%=context_Path%>"><img src="<%=context_Path%>/images/buy.png" alt="buy"/></a></td><td><a href="<%=context_Path%>"><img src="<%=context_Path%>/images/gift.png" alt="gift"/></a></td><td><a href="<%=context_Path%>"><img src="<%=context_Path%>/images/details.png" alt="detail"/></a></td></tr>
            <tr><td>Dukh Senay Sa Laiyon</td><td><a href="<%=context_Path%>"><img src="<%=context_Path%>/images/buy.png" alt="buy"/></a></td><td><a href="<%=context_Path%>"><img src="<%=context_Path%>/images/gift.png" alt="gift"/></a></td><td><a href="<%=context_Path%>"><img src="<%=context_Path%>/images/details.png" alt="detail"/></a></td></tr>
            <tr><td>Dil Ghuray The Dilruba</td><td><a href="<%=context_Path%>"><img src="<%=context_Path%>/images/buy.png" alt="buy"/></a></td><td><a href="<%=context_Path%>"><img src="<%=context_Path%>/images/gift.png" alt="gift"/></a></td><td><a href="<%=context_Path%>"><img src="<%=context_Path%>/images/details.png" alt="detail"/></a></td></tr>
            <tr><td>Allah Saien Moula Saien</td><td><a href="<%=context_Path%>"><img src="<%=context_Path%>/images/buy.png" alt="buy"/></a></td><td><a href="<%=context_Path%>"><img src="<%=context_Path%>/images/gift.png" alt="gift"/></a></td><td><a href="<%=context_Path%>"><img src="<%=context_Path%>/images/details.png" alt="detail"/></a></td></tr>
            <tr><td>Aj Kavriyo Watay</td><td><a href="<%=context_Path%>"><img src="<%=context_Path%>/images/buy.png" alt="buy"/></a></td><td><a href="<%=context_Path%>"><img src="<%=context_Path%>/images/gift.png" alt="gift"/></a></td><td><a href="<%=context_Path%>"><img src="<%=context_Path%>/images/details.png" alt="detail"/></a></td></tr>
-->
            <%
                       }//end for loop
            } else {
            %>
            <tr><td align="right" colspan="4"><a href="<%=context_Path%>/utune?more=1">more...</a></td></tr>
            <%
                }
            %>
        </table>
        <table width="100%" cellpadding="2" cellspacing="1" style="margin:3px 0px 0px 0px;">
            <tr style="background-color:#DEDFE1;padding:0px 0px 0px 3px;">
            <th width="70%">Most Downloaded</th>
            <th width="10%">Buy</th>
            <th width="10%">Gift</th>
            <th width="10%">Detail</th>
            </tr>
     <%
vRbt = db.getTopRbts(0,1);
i=0;
for(; i < Math.min(5, vRbt.size()); i++) {
    String [] rbt = (String [])vRbt.get(i);
%>       
  <tr><td><%=rbt[1]%></td><td><a href="<%=context_Path%>/utune/buy.jsp?rbt=<%=rbt[0]%>"><img src="<%=context_Path%>/images/buy.png" alt="buy"/></a></td><td><a href="<%=context_Path%>"><img src="<%=context_Path%>/images/gift.png" alt="gift"/></a></td><td><a href="<%=context_Path%>"><img src="<%=context_Path%>/images/details.png" alt="detail"/></a></td></tr>
<!--            
        <tr><td>Kyun Kisi Ko Wafa K Badlay</td><td><a href="<%=context_Path%>/utune/buy.jsp"><img src="<%=context_Path%>/images/buy.png" alt="buy"/></a></td><td><a href="<%=context_Path%>"><img src="<%=context_Path%>/images/gift.png" alt="gift"/></a></td><td><a href="<%=context_Path%>"><img src="<%=context_Path%>/images/details.png" alt="detail"/></a></td></tr>
            <tr><td>FaslonKoTakallufHai</td><td><a href="<%=context_Path%>/utune/buy.jsp"><img src="<%=context_Path%>/images/buy.png" alt="buy"/></a></td><td><a href="<%=context_Path%>"><img src="<%=context_Path%>/images/gift.png" alt="gift"/></a></td><td><a href="<%=context_Path%>"><img src="<%=context_Path%>/images/details.png" alt="detail"/></a></td></tr>
            <tr><td>Tumhay Dillagi Bhol Jani</td><td><a href="<%=context_Path%>/utune/buy.jsp"><img src="<%=context_Path%>/images/buy.png" alt="buy"/></a></td><td><a href="<%=context_Path%>"><img src="<%=context_Path%>/images/gift.png" alt="gift"/></a></td><td><a href="<%=context_Path%>"><img src="<%=context_Path%>/images/details.png" alt="detail"/></a></td></tr>
            <tr><td>Pehli Pehli Bar</td><td><a href="<%=context_Path%>/utune/buy.jsp"><img src="<%=context_Path%>/images/buy.png" alt="buy"/></a></td><td><a href="<%=context_Path%>"><img src="<%=context_Path%>/images/gift.png" alt="gift"/></a></td><td><a href="<%=context_Path%>"><img src="<%=context_Path%>/images/details.png" alt="detail"/></a></td></tr>
            <tr><td>Aeevien Russiya Naaa Kaar</td><td><a href="<%=context_Path%>/utune/buy.jsp"><img src="<%=context_Path%>/images/buy.png" alt="buy"/></a></td><td><a href="<%=context_Path%>"><img src="<%=context_Path%>/images/gift.png" alt="gift"/></a></td><td><a href="<%=context_Path%>"><img src="<%=context_Path%>/images/details.png" alt="detail"/></a></td></tr>
-->
<%
}
    if ("2".equals(strMore)) {
        for(; i < Math.min(10, vRbt.size()); i++) {
    String [] rbt = (String [])vRbt.get(i);
%>
<tr><td><%=rbt[1]%></td><td><a href="<%=context_Path%>/utune/buy.jsp?rbt=<%=rbt[0]%>"><img src="<%=context_Path%>/images/buy.png" alt="buy"/></a></td><td><a href="<%=context_Path%>"><img src="<%=context_Path%>/images/gift.png" alt="gift"/></a></td><td><a href="<%=context_Path%>"><img src="<%=context_Path%>/images/details.png" alt="detail"/></a></td></tr>
<!--            
        <tr><td>Rab Na Kare</td><td><a href="<%=context_Path%>"><img src="<%=context_Path%>/images/buy.png" alt="buy"/></a></td><td><a href="<%=context_Path%>"><img src="<%=context_Path%>/images/gift.png" alt="gift"/></a></td><td><a href="<%=context_Path%>"><img src="<%=context_Path%>/images/details.png" alt="detail"/></a></td></tr>
            <tr><td>Ankh hi na roi hai</td><td><a href="<%=context_Path%>"><img src="<%=context_Path%>/images/buy.png" alt="buy"/></a></td><td><a href="<%=context_Path%>"><img src="<%=context_Path%>/images/gift.png" alt="gift"/></a></td><td><a href="<%=context_Path%>"><img src="<%=context_Path%>/images/details.png" alt="detail"/></a></td></tr>
            <tr><td>Matlabi hen log yahan pe</td><td><a href="<%=context_Path%>"><img src="<%=context_Path%>/images/buy.png" alt="buy"/></a></td><td><a href="<%=context_Path%>"><img src="<%=context_Path%>/images/gift.png" alt="gift"/></a></td><td><a href="<%=context_Path%>"><img src="<%=context_Path%>/images/details.png" alt="detail"/></a></td></tr>
            <tr><td>Mohammad Ka Roza</td><td><a href="<%=context_Path%>"><img src="<%=context_Path%>/images/buy.png" alt="buy"/></a></td><td><a href="<%=context_Path%>"><img src="<%=context_Path%>/images/gift.png" alt="gift"/></a></td><td><a href="<%=context_Path%>"><img src="<%=context_Path%>/images/details.png" alt="detail"/></a></td></tr>
            <tr><td>Main Jeena Tere Naal</td><td><a href="<%=context_Path%>"><img src="<%=context_Path%>/images/buy.png" alt="buy"/></a></td><td><a href="<%=context_Path%>"><img src="<%=context_Path%>/images/gift.png" alt="gift"/></a></td><td><a href="<%=context_Path%>"><img src="<%=context_Path%>/images/details.png" alt="detail"/></a></td></tr>
-->
            <%
                       }//end for loop
            } else {
            %>
            <tr><td align="right" colspan="4"><a href="<%=context_Path%>/utune?more=2">more...</a></td></tr>
            <%
                }
            %>
        </table>
    </div>
</div>
<div style="background-color:#dedfe1; text-align:center  ">
    <table align="center" cellpadding="0" cellspacing="0" style="padding-top: 5px;margin-bottom:0px; ">
        <tr>
        <td>
            <a href="<%=context_Path%>/includes/app_pages/community.jsp"><img src='<%=context_Path%>/imgsrv?img=community.jpg&repo=PI&s=0&w=<%=mainButtonImgWidth%>' alt="community"></a>
        </td>
        <td>
            <a href="<%=context_Path%>/religion/index.jsp"><img src='<%=context_Path%>/imgsrv?img=religion.jpg&repo=PI&s=0&w=<%=mainButtonImgWidth%>' alt="religion"></a>
        </td>
        <td>
            <a href="<%=context_Path%>/utune/index.jsp"><img src='<%=context_Path%>/imgsrv?img=utunes_selected.jpg&repo=PI&s=0&w=<%=mainButtonImgWidth%>' alt="utune"></a>
        </td>
        <td>
            <a href="<%=context_Path%>/news/content_category.jsp?page=News&feed=55&ftitle=55"><img src='<%=context_Path%>/imgsrv?img=finance.jpg&repo=PI&s=0&w=<%=mainButtonImgWidth%>' alt="finance"></a>
        </td>
        </tr>
    </table>
</div>
<%@ include file="../includes/others.jspf"%>
<div style="padding:0px 0px 0px 0px;text-decoration: underline;">
    <jsp:include page="../banner.jsp">
        <jsp:param name="w" value="<%=width%>"/>
    </jsp:include>
</div>

<%@ include file="../includes/footer.jspf"%>

<%
wpb.LogVisit(strIP, thisPage, strGsm, strApn, strBrand, strModel, app, request.getQueryString());
%>